<template>
   <div>
       <h1>demo</h1>
       <el-button @click="doAlert">Thank you</el-button>
   </div>
</template>

<script>
    import { mapState } from 'vuex'
    export default{
        data(){
            return{
            }
        },
        created(){
        },
        mounted(){
        },
        computed:{
            ...mapState([
                'demonum'
            ])
        },
        methods:{
            doAlert(){
                this.$message.success("yeah");
            }
        }
    }
</script>

<style scoped>
</style>
